package com.learn.pojo;

import java.sql.Timestamp;

/**
 * @author DJJ_F
 * @version 1.0
 * @date 2025/02/11
 * @description
 */
public class User {
    private Integer id;
    private String name;
    private String phone;
    private String password;
    private String token;
    private Timestamp createTime;
    private Timestamp updateTime;

    public User() {
    }

    public User(Integer id, String name, String phone, String password, String token, Timestamp createTime, Timestamp updateTime) {
        this.id = id;
        this.name = name;
        this.phone = phone;
        this.password = password;
        this.token = token;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", phone='" + phone + '\'' +
                ", password='" + password + '\'' +
                ", token='" + token + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }
}
